package com.hyper_yang.javase.multiThread.diff;

public class MyRunnableTest {
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.run();
        Thread thread1 = new Thread(myRunnable); // 共享数据 num在 MyRunnable对象的堆空间中
        thread1.run();
        System.out.println("Main程序结束");
    }
}
